using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Betarium.PotonEditor
{
	public partial class ToneForm : Form
	{
		public ToneForm()
		{
			InitializeComponent();
		}

		private int m_nBrightness;
		private int m_nContrast;

		public int Brightness
		{
			get { return m_nBrightness; }
			set { m_nBrightness = value; }
		}

		public int Contrast
		{
			get { return m_nContrast; }
			set { m_nContrast = value; }
		}
	
	
		private void ctrlBrightness_ValueChanged(object sender, EventArgs e)
		{
			ctrlBrightSlider.Value = (int)ctrlBrightness.Value;
		}

		private void ctrlChromatic_ValueChanged(object sender, EventArgs e)
		{
			ctrlContrastSlider.Value = (int)ctrlChromatic.Value;
		}

		private void ctrlBrightSlider_ValueChanged(object sender, EventArgs e)
		{
			ctrlBrightness.Value = ctrlBrightSlider.Value;
		}

		private void ctrlContrastSlider_ValueChanged(object sender, EventArgs e)
		{
			ctrlChromatic.Value = ctrlContrastSlider.Value;
		}

		private void ToneForm_Load(object sender, EventArgs e)
		{
			ctrlBrightness.Value = m_nBrightness;
			ctrlBrightSlider.Value = m_nBrightness;
			ctrlChromatic.Value = m_nContrast;
			ctrlContrastSlider.Value = m_nContrast;
		}
	}
}